# $Id: Bonito,v 1.1.1.1 2006/09/14 01:59:09 root Exp $ # #	GENERIC configuration for Galileo EV64240 # #  This file is supposed to be included by target file after #  endian has been defined.
#
machine         Bonito3a4000_7a        mips    # CPU Architecture, Platform
config          pmon 
option          VGAROM_IN_BIOS
#
#  Define target endian
#
makeoptions	ENDIAN=EL		# Little endian version.


#include "conf/GENERIC_ALL"

#
# System Name and Target Name
#
option		SYSTYPE="\"Bonito\""
option		TARGETNAME="\"Bonito\""

#
# Platform options
#
option		loongson3A3
option		LSMC_2
#option		ARB_LEVEL       #use software MC leveling
#option		DDR3_DIMM       #board use DDR3 memory, use: USE_SB_I2C, else use USE_GPIO_I2C and MULTI_I2C_BUS
option		ENABLE_MC_VREF_TRAINING
option		VREF_STORE

option		AUTO_DDR_CONFIG #use DIMM SPD auto detect DIMM
#option		MULTI_I2C_BUS #multi chip i2c need it, TY 3a4000_2w_7a 3a4000_4w_7a
option		USE_LS2H_I2C
option		LOONGSON_GMAC
option         	LS3A7A_STR

option		BONITOEL	
option		DEVBD2F
option		LS3_SERVER
option		MIPS
option		INET
option		LS3_HT              # Enable the IO cache coherent of HT
#option		MCP68_IDE           # Enable the MCP68 IDE 0 channel
#option		USE_LPC_UART
#option		USE_SB700_LPC_UART

#option		MULTI_CHIP #for multi-chip systems
#option		CHIP_4     #for 4way, need MULTI_CHIP
#option		MCC        #memory cache coherency mode, recommend with MULTI_CHIP 

option		BOOTCORE_ID=0
#option		RESERVED_COREMASK=0x0000 #for 3a3000_4w_7a
#option		RESERVED_COREMASK=0xff00 #for 3a3000_2w_7a
option		RESERVED_COREMASK=0xfff0 #for 3a3000_7a
option		SHUTDOWN_MASK=0x0000
#option		LS7A_PHYS48_TO_HT40 #support 40 bit DMA device,3a4000-1w do not use it.If change bit offset should change dma rx window otherwise cause error.
option		LS132_CORE
option		LOONGSON3A4000
option  	LOONGSON_3ASINGLE #for 3a3000_7a
#option		LOONGSON_3ASERVER #for 3a3000_2w_7a or 3a4000_4w_7a
option		BONITO_100M
#option		BONITO_25M
option		BOOT_PARAM
option		LS7A			#for 7A

#option		ENABLE_SATA         #Enable SATA  ,when enable IDE can also use, when commended only IDE can use
#option		X800x600
#option		FB_XSIZE=640
#option		FB_YSIZE=480
option		CONFIG_VIDEO_16BPP

## VGA option ##
option		SERVER_3A
#option		RS780E
#option		USE_780E_VGA
#option		USE_BMC
option		VGA_NO_ROM
option		VGA_BASE=0xbe000000
#option		VGA_BASE=0xc0000000
option		VRAM_SIZE=128
#option		DEBUG_EMU_VGA
option		AUTOLOAD
option		INITRD_ADDR="0x9800000090000000"

#
# GPU driver selection. Selects for video
# Disable all options below to disable gpu driver 
# Enable all options below to enble gpu driver 
#
select		mod_x86emu_int10
select		mod_framebuffer
select		mod_vesa
select		mod_vgacon
#option		VESAFB
option		INTERFACE_3A780E

#
# flash type selection. Selects flash support
#
select		mod_flash_amd		# AMD flash device programming
select		mod_flash_intel		# intel flash device programming
select		mod_flash_sst		# intel flash device programming
select		mod_debugger		# Debugging module
select		mod_symbols		# Symbol table handling
select		mod_s3load		# Srecord loading
#select		mod_fastload		# LSI Fastload
select		mod_elfload		# ELF loading

#
# Command selection. Selects pmon commands
#
select          cmd_test_spi
select		cmd_newmt
select		cmd_setup
select		mod_display
select		cmd_about		# Display info about PMON
select		cmd_boot		# Boot wrapper
select		cmd_mycmd		
select		cmd_newmt
select		cmd_cache		# Cache enabling
#select		cmd_call		# Call a function command
select		cmd_date		# Time of day command
select		cmd_env			# Full blown environment command set
select		cmd_flash		# Flash programming cmds
select		cmd_hist		# Command history
select		cmd_ifaddr		# Interface address command
select		cmd_l			# Disassemble
select		cmd_mem			# Memory manipulation commands
select		cmd_more		# More paginator
select		cmd_mt			# Simple memory test command
select		cmd_misc		# Reboot & Flush etc.
#select		cmd_stty		# TTY setings command
select		cmd_tr			# Host port-through command
select		cmd_devls		# Device list
select		cmd_set			# As cmd_env but not req. cmd_hist
select		cmd_testdisk
#

select          cmd_test                # test commands,test hardisk
select		cmd_shell		# Shell commands, vers, help, eval
select		cmd_dtb
option		DTB


#
#
# Platform options
#
select		mod_uart_ns16550	# Standard UART driver
#option		CONS_BAUD=B9600
option		CONS_BAUD=B115200
select		ext2
select		fatfs
select		ramfiles
#select		mod_x86emu		# X86 emulation for VGA
option		MY40IO
option		NOPCINAMES		# Save some space for x86emu
#option		FASTBOOT
#select		vt82c686        #via686a/b code
#option		VGA_BASE=0xb0000000

#
# Functional options.
#
option		NOSNOOP			# Caches are no-snooping

#
# HAVE options. What tgt level provide
#
option		HAVE_TOD		# Time-Of-Day clock
option		HAVE_NVENV		#  Platform has non-volatile env mem
option		HAVE_LOGO		# Output splash logo
option		USE_SUPERIO_UART
#option		USE_LEGACY_RTC
#option		GODSONEV2A
#option		LINUX_PC
#option		LONGMENG
#option		RADEON7000
#option 	DEBUG_EMU_VGA
#option		AUTOLOAD
#option		CONFIG_PCI0_LARGE_MEM	
#option		CONFIG_PCI0_HUGE_MEM	
#option		CONFIG_PCI0_GAINT_MEM	
option		CONFIG_CACHE_64K_4WAY
option		NVRAM_IN_FLASH	

#
#  Now the Machine specification
#
mainbus0        at root
localbus0	at mainbus0
#loopdev0	at mainbus0
#fd0		at mainbus0
pcibr0		at mainbus0
#pcibr1		at mainbus0
pci*		at pcibr?
ppb*		at pci? dev ? function ?	# PCI-PCI bridges
pci*		at ppb? bus ?

#lahci0		at localbus0 base 0xbfe60000	# AHCI
#ahci_sd*  	at lahci0
#ahci_cdrom*  	at lahci0

ahci*		at pci? dev ? function ?
ahci_sd*  	at ahci?
ahci_cdrom*  	at ahci?
#### USB
#uhci*		at pci? dev ? function ?
ohci*   	at pci? dev ? function ?	# OHCI
usb*      	at ohci?

##lxhci0    	at localbus0 base 0xbfe38000	# xHCI
pcixhci*    	at pci? dev ? function ?
xhci*		at pcixhci?
usb*		at xhci?
#usbnet*      	at xhci?
select 	 	mod_usb_xhci

#pcinvme*	at pci? dev ? function ?
#nvme*		at pcinvme?

#### SCSI support
#siop*		at pci? dev ? function ?	# Symbios/NCR 53c...
#scsibus*	at siop?
#sd*		at scsibus? target ? lun ? 
#cd*		at scsibus? target ? lun ? 
#option		CONFIG_LSI_9260		# for LSI_9260-8i(2108) RAID card support

#### Networking Devices
#gt0		at localbus? base 4
#gt1		at localbus? base 5
#gt2		at localbus? base 6
# fxp normally only used for debugging (enable/disable both)
#fxp0            at pci? dev ? function ?        # Intel 82559 Device
#inphy*          at mii? phy ?                   # Intel 82555 PHYs
#brgphy*		at mii? phy ?                   # Broadcom PHYs
#rtl*		at pci? dev ? function ?
#rtk*		at pci? dev ? function ?
em*        	at pci? dev ? function ?
igb*       	at pci? dev ? function ?             #Intel 82576
select igb1
#added by wxy
#bnx*            at pci? dev ? function ?                       # BCM5709S

pcisyn0		at pci? dev ? function ?
pcisyn1		at pci? dev ? function ?
select		gmac

select		mod_usb
select  	mod_usb_storage
#select		mod_usb_uhci
select 	 	mod_usb_ohci
select		mod_usb_kbd


#### IDE controllers
option          IDE_DMA
pciide* 	at pci ? dev ? function ? flags 0x0000

#### IDE hard drives
wd*		at pciide? channel ? drive ? flags 0x0000
#wd0             at pciide? channel ? drive ? flags 0x0000
#cmdide*         at pci ? dev ? function ? flags 0x0000
#wd*             at cmdide? channel ? drive ? flags 0x0000

### wan+
### LSI MegaRAID SAS RAID controllers
mfi*		at pci?
scsibus*	at mfi?
sd*		at scsibus? target ? lun ? 

#### Pseudo devices
pseudo-device	loop	1	# network loopback

ide_cd* 	at pciide? channel ? drive ? flags 0x0001
select 		iso9660
select		ramfiles
select 		cmd_xyzmodem
option IDECD 
option HAVE_NB_SERIAL
#option USE_ENVMAC
#option LOOKLIKE_PC
#select cmd_lwdhcp
#select cmd_bootp
option FOR_GXEMUL
select fatfs
#option FLOATINGPT
#option PCI_IDSEL_VIA686B=17
#option PCI_IDSEL_SB700=14
option WDC_NORESET
select gzip
option INPUT_FROM_BOTH
option OUTPUT_TO_BOTH
#option VIA686B_POWERFIXUP
option DEVBD2F_VIA
#option USE_GPIO_SERIAL
option CONFIG_VIDEO_SW_CURSOR
select http
#select nfs
select tcp
select inet
select tftpd
#select e100
# SCSI RAID disk drive support
select scsi_sd
select raw_ether
